
 
app.controller('foodCtrl',function($scope,$http){

	$('.f_F1').each(function(i,e){
		
		$(e).on('touchstart',function(){
			
			$('.f_F1').removeClass('f_active');
			$(e).addClass('f_active');
		})
		
	})

//数据库调用
	$http.get('../php/food.php?mold=1').success(function(data){
			$scope.info = data;
			console.log($scope.info)

	}); 
	$scope.Fun=function(a){
		//console.log(a)
		$scope.a = a;
		$scope.info=[];
		$http.get('../php/food.php?mold='+$scope.a).success(function(data){
			$scope.info = data;
			console.log($scope.info)
		});
	};
	
	
})
